package com.swg.service;

import com.swg.common.ServerResponse;
import com.swg.pojo.User;

/**
 * @Author 【swg】.
 * @Date 2018/1/2 20:40
 * @DESC
 * @CONTACT 317758022@qq.com
 */
public interface UserService {
    ServerResponse<User> login(String username, String password);
    ServerResponse<String> register(User user);
    ServerResponse<String> checkValid(String str,String type);
    ServerResponse selectQuestion(String username);
    ServerResponse<String> checkAnswer(String username,String question,String answer);
    ServerResponse<String> forgetRestPassword(String username,String passwordNew,String forgetToken);
    ServerResponse<String> resetPassword(String passwordOld, String passwordNew,User user);
    ServerResponse<User> updateInfo(User user);
    ServerResponse<User> getInfomation(Integer userId);
    ServerResponse checkAdminRole(User user);
}
